/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package ru.jSkyRoom.finder;

import ru.jSkyRoom.factory.FinderByEdidFactory;
import ru.jSkyRoom.bridge.major.LeveledBridge;
import ru.jSkyRoom.factory.FinderByFormIdFactory;
import ru.jSkyRoom.finder.FinderByFormId;
import ru.jSkyRoom.interfaces.Armor;
import ru.jSkyRoom.interfaces.Enchantment;
import ru.jSkyRoom.interfaces.Keyword;
import ru.jSkyRoom.interfaces.LeveledItemList;

/**
 *
 * @author Rakev
 */
public class FinderByEdidFacade {

    private FinderByEdid<Armor> armoFinder;
    private FinderByEdid<Enchantment> enchantmentFinder;
    private FinderByEdid<LeveledItemList> leveledItemListFinder;
    private FinderByEdid<Keyword> keyWordFinder;

    public static FinderByEdidFacade create() {
        return new FinderByEdidFacade(new FinderByEdidFactory());
    }

    protected FinderByEdidFacade(FinderByEdidFactory finderFactory) {
        this.armoFinder = finderFactory.createArmorFinder();
        this.enchantmentFinder = finderFactory.createEnchantmentFinder();
        this.leveledItemListFinder = finderFactory.createLeveledListFinder();
        this.keyWordFinder = finderFactory.createKeywordFinder();
    }

    public Armor findArmor(String edid) {
        return armoFinder.find(edid);
    }

    public Enchantment findEnchantment(String edid) {
        return enchantmentFinder.find(edid);
    }

    public LeveledItemList findLeveledItemList(String edid) {
        return leveledItemListFinder.find(edid);
    }

    public Keyword findKeyword(String edid) {
        return keyWordFinder.find(edid);
    }
}
